using System;
using UnityEngine;

namespace PKGames.Plugins.Crashlytics
{
	public class CrashlyticsPluginEditor : ICrashlyticsPlugin
	{
		public void Log(string tag, string msg)
		{
			UnityEngine.Debug.Log("[CrashlyticsPlugin] Tag: " + tag + "\nMessage: " + msg);
		}

		public void LogException(string msg, string stack)
		{
			string text = stack.Substring(0, stack.IndexOf(Environment.NewLine, StringComparison.Ordinal));
			UnityEngine.Debug.Log("[CrashlyticsPlugin] Title: " + text + "\nMessage: " + msg + "\nStack: " + stack);
		}

		public void SetUserId(string userId)
		{
			UnityEngine.Debug.Log("[CrashlyticsPlugin] Set user id: " + userId);
		}

		public void SetString(string key, string value)
		{
			UnityEngine.Debug.Log("[CrashlyticsPlugin] Set key/value pair: " + key + " / " + value);
		}
	}
}
